import Router from 'koa-router'
import { getRanImg } from '../controller/wallpaper.controller.ts'
import { WallpaperRandomSchema } from '../schemas/common.schema.ts'
import { validateJoi } from '../middleware/common.middleware.ts'

const router = new Router({ prefix: '/wallpaper' })

// 获取随机图片 http 地址
router.get('/', validateJoi(WallpaperRandomSchema), getRanImg)

export default router
